package cn.elite.sqlSession;

import cn.elite.pojo.Configuration;

/**
 * @Author: ZLY
 * @Date: 2020/10/6 16:39
 * @Description:
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;
    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
